import request from '@/utils/request'

// 查询企业诉求列表
export function listDealEnterpriseAppeal(query) {
  return request({
    url: '/enterpriseAppeal/dealEnterpriseAppeal/list',
    method: 'get',
    params: query
  })
}

// 查询企业诉求详细
export function getDealEnterpriseAppeal(id) {
  return request({
    url: '/enterpriseAppeal/dealEnterpriseAppeal/' + id,
    method: 'get'
  })
}

// 保存企业诉求
export function saveDealEnterpriseAppeal(data) {
  return request({
    url: '/enterpriseAppeal/dealEnterpriseAppeal/save',
    method: 'post',
    data: data
  })
}

// 删除企业诉求
export function delDealEnterpriseAppeal(id) {
  return request({
    url: '/enterpriseAppeal/dealEnterpriseAppeal/' + id,
    method: 'delete'
  })
}

// 导出企业诉求
export function exportDealEnterpriseAppeal(query) {
  return request({
    url: '/enterpriseAppeal/dealEnterpriseAppeal/export',
    method: 'get',
    params: query
  })
}
